WARNING: This program has a bug, or error. So let's debug it!

RULE: We don't need the == in conditional statements for them to run. All we need is a boolean.

  • Click Run and click on Console to see that choice == "summer" evaluates to True or False.
  • Change the variable in the if conditional statement from is_true to is_correct.
  • Click Run and enter "summer" inside the ask box. When finished, click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)